Fixed replacing stringtable entries
Reenabled writing
Manually merged #1069