detect binary file only on first chunk