Encode unicode strings as utf-8 bystestrings before urllib.quote()