pub fn truncate_to_bytes(s: &str, max_bytes: usize) -> &str
Truncate a string to at most max_bytes bytes while preserving UTF-8 validity.
max_bytes