fix broken illegalCharacters (from previous commit)