Fix url_to_native_path and native_to_url_path on Windows.
Fix tests to run on windows.