Fix locale detection in IE.