docs: public static String encode(String value, String charset) {
          String result = null;
          if (!StringUtils.isEmpty(value)) {
              try {
                  result = URLEncoder.encode(value, charset);
              } catch (IOException e) {
                  throw new RuntimeException(e);
              }
          }
          return result;
      }