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

see: issue #1132
won't `JSON.stringify()` call the `toJSON` method of the `buf` object?