buildQueryString added as util