Do not use os.path.normpath on url as it would turn / into \ on Windows.