updated utf8-compatibility script