GPGME throws InvalidValue exception with some data

Try to force encoding to UTF-8 and see if that helps.