Japan leader sends letter to Beijing amid tension