only send valid utf8 to the database