MINOR: extra checks for binary file compression