public static boolean needsQuoting(String str) {
    if (str == null) {
      return false;
    }
    byte[] bytes = Bytes.toBytes(str);
    return needsQuoting(bytes, 0, bytes.length);
  }
Does the given string need to be quoted?
@param str the string to check
@return does the string contain any of the active html characters?
hbase-http/src/main/java/org/apache/hadoop/hbase/http/HtmlQuoting.java