BUG: safe_md5 needed to return hexdigest