pub fn truncate_to(s: &str, max_len: usize) -> String
Truncates a string to a max length, appending an ellipsis if truncated.