Quote escaping for Event Recorder

This should be fixing bug 246, but there might be some special cases that aren't met.