use codecs when reading/writing tag files; fixes #20