Detects if a file is binary based on its content.