def encode_uri_components(value):
    return convert_to_uri_component_encoding(six.moves.urllib.parse.quote(value))
Mimics Javascript's encodeURIComponent() function for consistency with the GA Javascript client.
dataset/ETHPy150Open kra3/py-ga-mob/pyga/utils.py/encode_uri_components