code: public static String encodeRedirectURLEL(HttpServletResponse rsp, String url) {
  	try {
  	    return rsp.encodeRedirectURL(url);
  	}
  	catch (Throwable t) {
  	    ExceptionUtil.rethrowIfNecessary(t);
  	    return url;
  	}
      }
docs: if encodings fails the given url is returned
  
  @param rsp
  @param url
  @return