Fix "Input string was not in a correct format." when the output contains {}

If the invoked script outputs {}, {n} etc. then a "Input string was not in a correct format." exception is thrown, and no output events are captured.

All output is ultimately fed through WriteLog, and as such goes through a string.Format call causing problems with {} brackets.

A simple repro is to invoke a script:   "{}"