1.4.x.gelf utf8 fix

This patch fixes the gelf input for https://logstash.jira.com/browse/LOGSTASH-1595, by migrating it to the 1.2 codec mechanism, and reusing the json codec.