converted hash.update string parameter to buffer

Added a line to hash.update to convert string data to buffer before appending to the buffer list. Otherwise hash.digest would fail trying to call concat on a list of strings, as pointed in this issue: https://github.com/dominictarr/crypto-browserify/issues/23