def escape(self):
        self._path = quote(unquote(self._path.decode("utf-8"))).encode("utf-8")
        return self
Make sure that the path is correctly escaped
dataset/ETHPy150Open circuits/circuits/circuits/web/url.py/URL.escape