fixed flaw in chapter title encoding