pub fn looks_utf8(buf: &[u8]) -> Option<(IdentifiedEncoding, bool)>
Evaluates whether buf is valid UTF-8 text.
buf