handle the case of invalid file name for restoreFromFile