Added chardet and testing.