Fixed: Saving text didn't always work

Notably, it didn't work when saving non-text entries that were viewed as
text; in particular map labels when using "edit level script".