pub fn floor_char(s: &str, i: usize) -> usize
Floor a byte limit to a UTF-8 boundary, clamped to the text length.