utf8validator implemented in Cython.