Add missing newline.
Use old Rewind method to remove last ", ", if any values was written.