Add tests for charset