encode chapter name