code: protected String rewriteUrl(String path) throws UnsupportedEncodingException {
  
          return new String(URLCodec.encodeUrl(URL_SAFE_CHARS, path.getBytes("ISO-8859-1")));
      }
docs: URL rewriter.<p>
  
  @param path path which has to be rewritten
  
  @return a string with the encoded path
  
  @throws UnsupportedEncodingException if something goes wrong while encoding the url