public static String escapeUnicode(String str) {
    return UNICODE_CONVERTER.translate(str);
  }
Escape java unicode characters.

@param str Original string
@return Escaped string
common/src/java/org/apache/hive/common/util/HiveStringUtils.java