CPTM: Make sure that there's an underscore when project name ends with number.
This means that project_1_chapter_3 will have pages named project_1_chapter_3_001.kra instead of project_1_chapter_3001.kra.
Ref: T6833