Viewer: Spec compliant encoding detection for EPUB

E-book viewer: When viewing EPUB files, ignore any encoding declarations
in the HTML and assume that the HTML is encoded in UTF-8 unless
decoding with UTF-8 fails. Fixes #1188843 [importing epub on mac mixes control characters in with typography](https://bugs.launchpad.net/calibre/+bug/1188843)