I'm surprised you use plain text for the storage, perhaps an INI file would be better here in general (named text storage) as well as for avoiding this bug.
Here's an example on INI files being used for saved games: INI Level Loader/Editor*
*It's on the old forums, so any links it has won't work. Scroll to the bottom of page 1 to get the advanced loader and the editor.