Made ElGamalEncryptor use encoder