changed implementation to non locale dependant
Merge pull request #8 from zukalt/windows

changed implementation to non locale dependant

Merging to windows branch