pub fn normalize_line_endings(data: &mut Vec<u8>)
Normalises all CR-only and CRLF line endings to LF throughout the buffer, then ensures the buffer ends with exactly one \n.
\n