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.
Merge commit '905f7bad2483e84be2e0ba8384cc86cf48ea621c' into HEAD