GPGOL of GPG4WIN and Umlauts

Recently I stumbled over the problem that the GPGOL addin of GPG4WIN (version 2.1.0) apparently has some problems with the German umlauts. At the bottom it turned out that it could not deal well with the message encoding. Here is how I managed to work around the problem.