FIX: encode string in UTF8 before doing checksum.

FIX: fill struct `sockaddr_alg` with zeros.
TESTS: fix merge error in the unit tests.