static boolean needsEscaping(char c) {
    return c < charToEscape.size() && charToEscape.get(c);
  }
Hex encoding characters indexed by integer value
common/src/java/org/apache/hadoop/hive/common/FileUtils.java