Escape rendered message in JSON-based sinks.