Add InspIRCd::IsValidModeChar to validate mode characters.