Fix illegal characters