Sanitize names with illegal characters