fn truncate_chars(text: &str, limit: usize) -> String
Truncate a string to a character boundary and add an ellipsis marker.