Fixed file-ruining bugs in SurfaceEditor which resulted from using special characters in surface files.