Handle Windows locale format

For example, `"Japanese_Japan.932"`.