Correct infinite loop when parsing savefile with unbalanced quotes.

A savefile which had unbalanced quotes in the last quotes field would
result in the parser entering an infinite loop.  This is now fixed.

Fixes issue #118.