pub fn encode(bytes: &[u8]) -> (String, &'static str)
Data for an event: text when it is printable UTF-8, hex otherwise, with the encoding named.