def urlquote(url, safe='/'):
    return force_unicode(urllib.quote(smart_str(url), smart_str(safe)))
A version of Python's urllib.quote() function that can operate on unicode
dataset/ETHPy150Open letolab/airy/airy/utils/http.py/urlquote