pub fn offset_to_position(source: &str, offset: u32) -> (u32, u32)
Convert a byte offset into a (line, character) position.
(line, character)