Escape Newlines in Events for Spanner

Newlines were not being escaped in the Spanner implementation,
leading to events causing an Invalid JSON String error when
received by GerritMissedEventsPlaybackManager in the
gerrit-trigger Jenkins plugin.

Change-Id: Ic6e5777e6e5f053963debd24c9ebfef859eceb7d
1 file changed