def urlencodeall(str):
    if not str:
        return ""

    return string.join(['%' + s.encode('hex') for s in str], '')
URL encode everything even unresreved chars
dataset/ETHPy150Open benadida/helios-server/helios/utils.py/urlencodeall