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