lib/decorators: Cast self.msg to unicode before flashing

Usually lazy i18n strings are used in self.msg and the JSON module now
complains that those are not serializable.