[#1679] IO.writeContent adds newline