The Rollerworks UriEncoder provides a simple library, to safely encode a string for usage in a URI.