Serialize i18n messages before they reach the sql layer, to prevent an issue with python3. This also fixes an issue with map behavior. Change-Id: Ib934f5ac27cc1983a12c73f38927a116d50a5e6e