lots of fixes for encodings, does inline pgp now