The GnuPG API uses utf-8 for filenames and not the local8 bit encoding as QFile::encodeName would do.