db.utils: Use unicode for GPG error messages

This patch makes the use of unicode more consistent, and enforces the
UTF8 charset for the added payload in case of failure.