pub fn decode_bytes( bytes: &[u8], encoding: FileEncoding, ) -> Result<String, String>
Decode raw bytes to a String based on the detected encoding. For UTF-16, also normalizes CRLF to LF.