fix illegal char