Fixed bug where non-ascii chapter names weren't handled properly