docs: @Deprecated
      public static String encodePath(String path) {
          try {
              return URIUtil.encodePath(path, "UTF-8");
          } catch (URIException ex) {
              throw new EsHadoopIllegalArgumentException("Cannot encode path segment [" + path + "]", ex);
          }
      }