implement optimized utf8 validator
fix bug & optimize SimpleXorMasker