Fix FlagSet::write_text.