docs: private static String urlEncodeParameter(String parameter) {
          try {
              return URLEncoder.encode(parameter, "UTF-8");
          } catch (UnsupportedEncodingException ex) {
              log.warn("Could not encode parameter.", ex);
          }
          return parameter;
      }