URL encoding in python,urllib.parse.quote(s.encode('utf-8'))