Fix OOE when parsing unterminated JSON strings, fixes #122