Fix unkown locale error on Windows