Fix illegal characters in name.