IR export: export mode name as string; mark "the" mode_P mode.