diff --git a/src/common/gpg.py b/src/common/gpg.py
index 2f79576265273aa1a7db4ae8102401977c994ee0..c95ed2257da54188d4ff60e6a0774b383a633d08 100644
--- a/src/common/gpg.py
+++ b/src/common/gpg.py
@@ -31,6 +31,7 @@ if HAVE_GPG:
     class GnuPG(gnupg.GPG):
         def __init__(self, use_agent=False):
             gnupg.GPG.__init__(self)
+            self.decode_errors = 'replace'
             self.passphrase = None
             self.use_agent = use_agent
             self.always_trust = False