encode values (unicode/utf8)
prepare control of threadcount