some mime and pgp fixes for file transfer