Implement #491549: On Windows, always use the native API for character set