testing writeFile() with encoding