Escaping "\" in postgres event fields

Here's the change that fixed my issue. Not sure if this has further implications (not a DBA).