Fix UTF-8 encoding of EPUB files

This script edits ill-formatted EPUB files to ensure that they specifies the UTF-8 encoding.

EPUB files that don't specify this are interpreted as Windows-1252 characters by default on many platforms and the resulting ebook has a lot of unwanted characters. This this link for more details on the encoding errors.

Usage

python fix_epub_utf8.py file_path.epub -o output_file_path.epub