illegal character fix