dirty fix for bytes/utf8 issues