LOGSTASH-1352

fix logstash crash when trying to handle invalid utf8 characters