params['foo'] = my_raw_input.decode('iso-8859-1')
params = urllib.parse.urlencode(dict([k, v.encode('utf-8')] for k, v in list(params.
    items())))
Python interface to PayPal - urllib.urlencode non-ASCII characters failing