def clean_url(url):
    url = url.encode('utf8')
    url = ''.join([urllib.parse.quote(c)
                  if ord(c) >= 127 else c for c in url.decode('utf-8')])
    return url
:param host: API server hostname
dataset/ETHPy150Open codelucas/newspaper/newspaper/images.py/clean_url--crossover with--dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/__init__.py/set_api_server_info