US encourages Pak-India dialogue as PM Sharif writes letter to Modi