Improve HTML chunking.

Fix [issue 368](https://code.google.com/p/daisy-pipeline/issues/detail?id=368)