Remove invalid char