re-introduce savePanelDidEnd2 to ensure saving of file once selected
use NSURL

Fixes "Save As" bug where files would not be saved without notice.
Reported by Iliya Lefterov.