Remove illegal characters