Outfuncs: Fix WRITE_CHAR_FIELD to escape 0 values in order to not terminate string too early.

There doesn't seem to be an easier way, since nodeToString does not return the string length.