test with chardet