Small optimisation to build_request_url method.