Try to handle utf8_countTrailBytes differently for sqlite3