pub fn char_to_byte_pos(text: &str, char_pos: usize) -> usize
Convert character position to byte position in a UTF-8 string