fixed an issue with add_page for categories with whitespace in their names