Test for invalid char