public static void writeToFile(String path, String data) throws IOException {
        writeToFile(path, data.getBytes(Charset.forName("UTF-8")));
    }
Write `data` to `path` using UTF-8 as binary encoding format.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/TestFileUtil.java