output.write(buffer.toString().getBytes());
output.write(buffer.toString().getBytes("utf-8"));
	private static void writeIndexEntry(final IFileStore file, final RefactoringDescriptor descriptor, final IProgressMonitor monitor) throws CoreException, IOException {		OutputStream output= null;		try {			monitor.beginTask(RefactoringCoreMessages.RefactoringHistoryService_updating_history, 2);			file.getParent().mkdir(EFS.NONE, new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL));			output= new BufferedOutputStream(file.openOutputStream(EFS.APPEND, new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)));			final StringBuffer buffer= new StringBuffer(128);			buffer.append(descriptor.getTimeStamp());			buffer.append(DELIMITER_STAMP);			buffer.append(descriptor.getDescription());			buffer.append(DELIMITER_ENTRY);			output.write(buffer.toString().getBytes());		} finally {			monitor.done();			if (output != null) {				try {					output.close();				} catch (IOException exception) {					// Do nothing				}			}		}	}