(Sorry, the last sentence there got a bit strange.)
I see there's a quote() method in Standards.URI. It encodes only partially in a bogus way that makes it dangerous to use. I suggest to deprecate it and introduce a complete encoding function like the Roxen.http_encode_url found in WebServer 4.0 or later.