remove the illegal print char