use chardet as fallback