Library for parsing epub document metadata (Haskell)

#1Encoding issue when reading package xml from archive

Hi,

first of all: really thank you for the library!

I'm encountering an encoding issue when reading a package xml from zip or ByteString via Codec.Epub.IO.getPkgPathXmlFromZip or Codec.Epub.IO.getPkgPathXmlFromBS. I'm trying to read epub's with special chars for title or author. For example:

<dc:creator opf:file-as="Dicker, Joël" opf:role="aut">Dicker, Joël</dc:creator>

is scrambled to:

<dc:creator opf:file-as="Dicker, Joël" opf:role="aut">Dicker, Joël</dc:creator>

I located the source to string conversion (Lazy.ByteString -> String) in fileFromArchive. I have a fix for it, I try to issue a pull request, after figuring out how to do it with darcs :)