Typeerror Strings Must Be Encoded Before Hashing Algorithm