pub fn string_from_offset(contents: &[u8], offset: usize) -> Option<String>
Try to get a String from a byte buffer, get a lossy String if it wasn’t UTF-8, or get a hex string as a last resort.