Fix newline issue when writing culture files