out = new OutputStreamWriter(new BufferedOutputStream(
new FileOutputStream(tmpFile), bufferSize), UTF_8);
out.write(content);
} catch (UnsupportedEncodingException ex1) {
// UTF-8 must always be supported
throw new ManageSieveError("Runtime must always support UTF-8", ex1);
} finally {
IOUtils.closeQuietly(out);
}
} catch (IOException ex) {
FileUtils.deleteQuietly(tmpFile);