private static boolean containsNonPrintableCharactersString(final CharSequence buffer) {
        for (int i = 0; i < buffer.length(); i++) {
            char b = buffer.charAt(i);
            if (b < 32 && (b != 9 && b != 10 && b != 13)) return true;
        }
        return false;
    }
Date: Apr 17, 2008

@author <a href="mailto:humbe@yahoo-inc.com">H&aring;kon Humberset</a>
document/src/main/java/com/yahoo/document/serialization/XmlSerializationHelper.java