Lowercase characters for md5 calculation of authentication digest

Closes #349. Closes #350.