remove unused $port
urlencode parameters in actual request but not when signing