invalid char fix