Improve the efficiency of header and query string encoding in cloudi_service_http_cowboy and cloudi_service_http_elli.