Fix path to URL conversion on windows