Make Channel::containsIllegalCharacter static