fix magic so that it can detect binary file