Improved stability of the EscapeSelector method in Core.App.js to also handle # correctly.