More special case handling on Windows: file encoding, backslashes, url quoting