Implements LOGSTASH-2272: escaping within `kv`