convert unicode into utf-8 for urllib.quote