Fix utf8 error after commit to the db