 			file.print("line 1")
 			file.close()
 
-			let contents = try String(contentsOfFile: path)
+			let contents = try String(contentsOfFile: path, encoding: .utf8)
 			XCTAssertEqual( contents, "line 1\n" )
 		}
 	}

			file.print("new line")
			file.close()

			let contents = try String(contentsOfFile: path)
			XCTAssertEqual( contents, "new line\n" )
		}
	}

			file.print("new line")
			file.close()

			let contents = try String(contentsOfFile: path, encoding: .utf8)
			XCTAssertEqual( contents, "existing line\nnew line\n" )
		}
	}
