Fix utf-8 errors, set the text_factory of sqlite to str