Merge pull request #7 from giact/master

Fixed a crash when parsing strings containing non-ascii characters