38c38 < path = urllib.quote(posixpath.dirname(path)) --- > path = urllib.quote(posixpath.dirname(path).encode('utf-8'))