Fix two deprecation warnings
This should also fix wrong decoding of error messages on Windows. Current gpgme/libgpg-error always returns UTF-8-encoded texts.