Added better exception reporting to the logstash encoder.