pub fn truncate_bytes(s: &str, max: usize) -> &str
Truncate string to max bytes, respecting UTF-8 boundaries. Does not add any suffix.