Convert string to UTF-8 before applying hash algorithms (#342)

Add a description of Convert string to UTF-8 before applying hash algorithms (#342)