docs: @Deprecated
      public static String encodeUri(String uri) {
          try {
              return URIUtil.encodePathQuery(uri);
          } catch (URIException ex) {
              throw new EsHadoopIllegalArgumentException("Cannot escape uri [" + uri + "]", ex);
          }
      }