pub fn looks_binary(bytes: &[u8]) -> bool
Heuristic: a byte slice is “probably binary” if the first 8KB contains a null byte. This is the same check git uses.