There are some characters that require four bytes in UTF-8, so the buffer size should be (text length * 4 + 1).
Merge pull request #50 from harawata/fix-text-size

BE_MessageDigest returns incorrect result when input contains some multi-byte (e. g. Japanese) characters