Fix "foo << unsigned char" instances

Hopefully this catches all the places where the type change in
mesh dimension could corrupt our text output.