Fix small issues with BinaryConverter

 - Converting model printed the name of the resulting file, without newline.
    Newline was added.
 - If the resource index file could not be opened, the xml writer would keep
    that error and give an exception when saving the file. Now we clear the
    document to reset the error status.