fixed utf8 encoding for sha256