Fix recryption error when using gpg-agent in text mode