Autoconversion of corrupted files