Fix issue #50: ValueError under Windows
Merge pull request #17 from weinimo/issue-50

Fix issue #50: ValueError under Windows