Remove dependency on `urllib.urlencode`
Remove `encode` method and use `json.dumps` directly.