(PE-5859) Keep entire request URI matching regex

When wrap-proxy is called with a regex, keep the entire
portion of the request URI matching the regex rather than
replacing it in the rewritten URI.