docs: public static String encodeParamsWithUri(String uri, HttpServletRequest req) {
  
          String result;
          String params = encodeParams(req);
          if (CmsStringUtil.isNotEmpty(params)) {
              result = CmsEncoder.encode(uri + "?") + params;
          } else {
              result = CmsEncoder.encode(uri);
          }
          return result;
      }