def url_quote(string):
return quote(string.encode('<STR_LIT:utf8>'), safe='<STR_LIT>')<EOL>
Percent encode a string as ASCII so that it is a valid part of a URI

    :param string: str
    :returns: ASCII string