add test for invalid charset