Fix broken Gravatar URL generation

Gravatar URL's should make use of a trimmed and lowercased email address. This patch implements the correct hashing method as per the official implementation guide at https://en.gravatar.com/site/implement/hash/.