ensure only params are replaced in URL

Previously, URL segments that had colons in them that were not intended
as parameters (such as in a query string) were replaced. Now, they are
not.