fix hang when parsing an unclosed string that hits the end of file (fixes #85)