Fix template reloading on Windows to use robust url-file conversion