bug with buffer-toString