OFFileManager: Mask modes to ensure safe modes