public Text evaluate(Text s) {
    if (s == null) {
      return null;
    }

    byte[] str = s.getBytes();
    return evaluate(str, s.getLength());
  }
Convert every character in s to two hex digits.
ql/src/java/org/apache/hadoop/hive/ql/udf/UDFHex.java