bug fix for urllib.quote