FIXED: reliably write all characters when using format/3
FIXED: reliably write all characters when using format/3

This addresses #693.

Many thanks to @notoria for a brilliant test case, and the
suggestion of this correction!

mthom/rusty-wam