pub fn ellipsize_to_max_bytes(s: &str, max_len: usize) -> String
Ellipsize a string to a maximum byte length, respecting UTF-8 boundaries.