switch from utf8-string to encoding package