only use non-unicode API on windows