try first to decode strings using utf8, and use chardet only if this fails