Here the user has highlighted a category name,
which he will put inside [[ ]] and insert into a page.
However, that will create a red category, as at the end there is a hidden
U+FFFC OBJECT REPLACEMENT CHARACTER
Therefore, upon saving the page, a warning should stop him:
Your proposed category contains the illegal char ... here ...