KAZOO-2193: function expects a binary not the json object, also added the missing /binary