Use a py3 compatible urlencode