fix invalid char