title: Simplest URL encode/decode pattern for parameters used with datasources
body: <p>Application uses mechanism for filtering documents in view by category - all available categories (just a few) are looked up and fed to Outline component. Each Outline entry then adds URL parameter used in view datasource to filter documents by category.
  Problem is with non ANSI characters (international). In many cases it is working as expected, but some proxies forbid to use these characters in URL.</p>
  
  <p>The workaround is to use encode/decode of url, what makes alight complication to SSJS code in Category property of view datasource: instead of simple <code>context.getUrlParameter("category");</code> there is need to decode parameters, which is "complicated", for example this way: <a href="http://www.mkyong.com/java/how-to-encode-a-url-string-or-form-parameter-in-java/" rel="nofollow">http://www.mkyong.com/java/how-to-encode-a-url-string-or-form-parameter-in-java/</a></p>
  
  <p>Is there any XPages specific way to simplify this?</p>