Basic percent formatting.

Too basic, actually. Doesn't handle locale-specific spacing.