Added consumer encoding example.