check the encoding to utf8