PLF-6058: Failed to render Space Switcher in Catalan

Problem analysis:
* The label inside search space box in Catalan has an apostrophe. This mark is misinterpreted as parameter separator of JavaScript block.

Fix description:
* Escape the label before adding it into JavaScript block.