pub fn truncate_str(s: &str, max: usize) -> &str
Truncate a string to at most max bytes at a valid UTF-8 boundary.
max