Fix Gravatar helper's lack of input validation