pub fn truncate_slug(input: &str, max_length: usize) -> String
Truncates a slug without leaving trailing separators when possible.