LOGSTASH-1680 - Adding codec support while fixing bug in lj output