ECDSA.normalize_digest: Properly handle string encoding.