We should consider refactoring the `maec.Entity.to_xml_file()` method to support "file-like" objects like StringIO, etc.