fix(utils.js): diffs for buffers, issue #1132

see: issue #1132
likewise, in what instance will `buf` have a `toJSON()` method, or not?