Fix unicode issues with urllib.urlencode()