a set of tweaks to make valid and nicer epub from TCP