Bug fixes and tweaks, EPUB character encoding