Ensure correct encoding when hashing and verifying
Ensure correct encoding when hashing and verifying

Depending on the database backend the string might not be UTF-8 encoded.
This makes sure that the hashing function works regardless of that.

Signed-off-by: Felix Kaechele <9c69098d379350e157eff4ad93150662007b8fb2@kaechele.ca>

ngoduykhanh/PowerDNS-Admin,ngoduykhanh/PowerDNS-Admin,ngoduykhanh/PowerDNS-Admin,ngoduykhanh/PowerDNS-Admin