support node.js Buffer

  This is to address https://github.com/pvorb/node-sha1/issues/2