use http_build_query() in HTTPClient

this ensures nested POST data is correctly encoded