pub fn is_binary(data: &[u8]) -> bool
Centralized binary file detection.
Uses a heuristic based on the ratio of non-printable characters in the first 512 bytes.