Some fixed and utils and a new utf8 test sequence

Some fixed and utils and a new utf8 test sequence