Check for file corruption