Feedbooks/peregrin — pull request #1 by maximplourde (2013-11-19 16:16:56+00:00)
Title: Open file in binary mode to support ruby utf8 internal encoding

When using the https://github.com/Feedbooks/epub_preview_factory Extractor class within a rails project, the epub generation fails because this gem tried to force illegals characters from ASCII to UTF-8. Rails set the ruby Encoding.default_internal = Encoding::UTF_8 by default. The requested changes fix the problem. Thx.,