replacing custom get parameter builder with build in http_build_query()