binary file extension detection