Quote escaping for Event Recorder

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