fix generate chapter filename extension