def b2_url_encode(s):
    return urllib.parse.quote(s.encode('utf-8'))
URL-encodes a unicode string to be sent to B2 in an HTTP header.
dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/b2/utils.py/b2_url_encode