Convert string to bytes for hasing.

Python3's default Unicode string capability caused issues with the hash generation.
Convert to a byte stream before hashing.