Detect if a file is binary or text
