fix preg_replace preg_split with utf-8

fix preg_replace preg_split with utf-8
if I write some word with utf-8，it will occur messy code.
thank you.