Fix to urlencode data before POSTing to HTTP server

This is done to sync up with aaaaalbert@fe6c8ff411 which changed
`httpretrieve` to require just that.