Don't encode the path before calling urllib.request.pathname2url().

This doesn't work on Windows, as filename are always unicode there.