pub fn floor_char_boundary(s: &str, max_bytes: usize) -> usize
Largest byte index <= max_bytes that is still a valid UTF-8 boundary.
<= max_bytes