test can handle charset