I reckon this fits better in URIUtils?

Also, I'd tend to just supply the slash rather than useForwardSlashes (better readability for the caller).  Is there ever a case where we'd not remove the dupes if you were correcting slashes?  If not, that parameter can go.