Fixes bug in generating unicode flags.