fix newline to be \r\n in flw on all platforms