util: extend HTTPClient

It now supports HTTPS, querystring, and charset specifying.