If you will be saving strings that contain newlines and other INI-reserved characters, I think you've outgrown the format. The built-in INI functions have never handled them cleanly, and they probably never will. On the other hand, JSON will never give you this nonsense, and that is also why you should learn how to use that instead.