bug fix for the utf8 encoding