Fix for urlencode in python3