pub fn decode(bytes: &[u8]) -> String
Decode bytes as text: BOM-aware UTF-8/UTF-16, falling back to Windows-1252 (a superset of Latin-1) when the bytes are not valid UTF-8.