encode-uri-query Extracted copy of anuglar's internal encodeUriQuery() function so that we can create matching urls.