rtrim added to page_id aka $doc->title on line 70

This change fixes issue 449 by removing the trailing dash found in document titles.