Fix newlines on records