title: Creating and writing to a file with UTF-8 encoding
body: <p>Here is my Java code.</p>
  
  <pre><code>File file = new File(path);
  StringWriter sw = new StringWriter();
  //Do something.
  out.println(sw.toString()); //Works fine; prints.
  try {
          FileUtils.writeStringToFile(file, sw.toString(), "UTF-8");
      } catch (IOException e) {
          throw new RuntimeException( e );
      }
  </code></pre>
  
  <p>I don't already have the file created, and neither is it creating it after the execution. 
  How can I do this?</p>