code cleanup
make gpg_send_message safer