Fix a problem where if a test logs a string with a NUL character, the resulting
test log contains the NUL and looks like a binary file to WinMerge.exe, which will
refuse to diff it against the baseline test log. The fix is to log NUL characters
as "\0".