Really fix UTF-8 handling in get_max_chars_in_width()