(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.
@cprice404 I'm good with the hand-rolled way @fpringvaldsen addressed this in the latest commit - in order to avoid the extra dependency for now.