File newFile(String path, String content) { var bytes = const Utf8Encoder().convert(content); return newFileWithBytes(path, bytes); }