Java Experts Take Note:
Most of the work for converting flags to Strings is done in the Parser class in the methods mask and mask2s.