This should use ConvertToCString and write that out.