Fix detecting of UTF8 Sequences