Name validation check against invalid characters.