public static String escapePathName(String path) {
    return escapePathName(path, null);
  }
Hex encoding characters indexed by integer value
common/src/java/org/apache/hadoop/hive/common/FileUtils.java