Fix ValueErrorsubstring not found on windows

Fix ValueError: substring not found on windows
Merge pull request #13 from wwfifi/master

Fix ValueErrorsubstring not found on windows