playing around with buffer encoding over json