Fix buffer printing in json value to string