Use FileUtils to write data, and check for exceptions during convert