Fix issue #50: ValueError under Windows