SPARK-2098: All Spark processes should support spark-defaults.conf, config file

You could use [this](http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/io/Files.html#write(java.lang.CharSequence,%20java.io.File,%20java.nio.charset.Charset)) method instead.