moved kafka json encoder from demos to contrib