Properly check file size in bytes.