Fix to handle unicode on windows