[noco] Encode before passing to hashlib.md5 (Closes #3816)