pub fn truncate_str(s: &str, limit: usize) -> String
Truncate to at most limit bytes without splitting a UTF-8 character.
limit