[corlib] Let XI and XM define their own default encoding [#29928]