Fix case sensitivity in recipient hash comparison

[fixes #501]

Previously the hash comparison was done on directly using the equality
operator. This proved to be too restrictive as hash implementations can
generate output of varying case. I changed the implementation so that
the generated hash and the expected hash are normalized to lowercase
before comparing.