fix encode (output) for oldlogstashjson codec.

It was referencing the obj variable which didn't exist
Merge pull request #665 from turtlebender/feature/fix-oldlogstashjson-encode

fix encode (output) for oldlogstashjson codec.