docs: public static String encodePathSegment(String val) {
          try {
              return UriUtils.encodePathSegment(val, "UTF-8");
          } catch (UnsupportedEncodingException e) {
              // should be unreachable...
              throw new RuntimeException(e);
          }
      }