escape topic title and category name
closes #2520
closes #2519