Fix compilation breakages on gcc.
Changed multi-line entries so that regardless of platform the in memory value has lines separated by a single \n character and on save they are delimited by the platform newline characters.
Added option to output the UTF-8 file signature to all Save and SaveFile methods.