That did the trick. Still get an error with saves but starting a fresh game now works fine. Maybe there was a linefeed or something in there. Do you code on a Linux device?
I code on a PC. What platform did you run the game on?