Escape unsafe messages in CategoryViewer.php