Force object to a string to make it usable with Flask-Babel's lazy_gettext.