static Charset? forName(String name) => values.firstOrNullWhere((c) => c.name == name.toUpperCase() || c.aliases.contains(name.toUpperCase()));