Open files in binary mode to correct for size inconsistency.