src/vs/workbench/services/textfile/common/encoding.ts/encodingExists
export async function encodingExists(encoding: string): Promise<boolean> {
	const iconv = await import('@vscode/iconv-lite-umd');

	return iconv.encodingExists(toNodeEncoding(encoding));
}