Rework to use normal url form on windows platform

CB-7883: toURL method called on etnries returned by resolveLocalFileSystemURL and getDirectory produces path instead of URL. 

This rework produce url's in normal form. The code passes all automated tests, although some tests were massaged for windows platform.