Add encoding and fallback test coverage to json and json_lines codecs

This is for LOGSTASH-1595