fix escape_string mmeory corruption error.
fix a number of small stuff that happens when loading very old data files (like 572).