Binary file header parser to find the MIME type of a file