It has to be read as utf-8...
I tested it an ran into the following:
```
<SoftwareIdentity name="bzip2" uniqueId="Ubuntu_12.04-i686-bzip2-1.0.6-1" version="1.0.6-1" versionScheme="alphanumeric" xmlns="http://standards.iso.org/iso/19770/-2/2014/schema.xsd">
  <Entity name="strongSwan" regid="regid.2004-03.org.strongswan" role="tagcreator"/>
  <Payload>
    <File location="/bin" name="bzip2"/>
    <File location="/bin" name="bunzip2"/>
    <File location="/bin" name="bzcat"/>
    <File location="/bin" name="bzip2recover"/>
    <File location="/bin" name="bzexe"/>
    <File location="/bin" name="bzgrep"/>
    <File location="/bin" name="bzmore"/>
    <File location="/bin" name="bzdiff"/>
    <File location="/usr/share/man/man1" name="bzip2.1.gz"/>
    <File location="/usr/share/man/man1" name="bzexe.1.gz"/>
    <File location="/usr/share/man/man1" name="bzgrep.1.gz"/>
    <File location="/usr/share/man/man1" name="bzmore.1.gz"/>
    <File location="/usr/share/man/man1" name="bzcmp.1.gz"/>
    <File location="/usr/share/man/man1" name="bzdiff.1.gz"/>
    <File location="/usr/share/man/man1" name="bzegrep.1.gz"/>
    <File location="/usr/share/man/man1" name="bzfgrep.1.gz"/>
    <File location="/usr/share/man/man1" name="bzless.1.gz"/>
    <File location="/usr/share/doc/bzip2" name="copyright"/>
    <File location="/usr/share/doc/bzip2" name="changelog.Debian.gz"/>
    <File location="/bin" name="bzegrep"/>
    <File location="/bin" name="bzfgrep"/>
    <File location="/bin" name="bzless"/>
    <File location="/bin" name="bzcmp"/>
    <File location="/usr/share/man/man1" name="bunzip2.1.gz"/>
    <File location="/usr/share/man/man1" name="bzcat.1.gz"/>
    <File location="/usr/share/man/man1" name="bzip2recover.1.gz"/>
  </Payload>
</SoftwareIdentity>Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/vagrant/swidGenerator/swid_generator/main.py", line 83, in <module>
    main()
  File "/home/vagrant/swidGenerator/swid_generator/main.py", line 66, in main
    print_swid_tags(swid_tags, separator=options.document_separator, pretty=options.pretty)
  File "swid_generator/print_functions.py", line 61, in print_swid_tags
    iterate(swid_tags, action, separator, end='')
  File "swid_generator/print_functions.py", line 32, in iterate
    item = generator.next()
  File "swid_generator/generators/swid_generator.py", line 76, in create_swid_tags
    pi.files = environment.get_files_for_package(pi.package)
  File "swid_generator/environments/dpkg_environment.py", line 66, in get_files_for_package
    files = filter(cls.is_file, lines)
  File "swid_generator/environments/common.py", line 58, in is_file
    mode = os.stat(path).st_mode
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u011f' in position 69: ordinal not in range(256)
```