Revert "Custom select: Escape weird characters in popup/dialog ID when they become hrefs. Fixes #5893."

This reverts commit f0b2417d4d8cbd84903fe9c1112a34b1ef13a039.

Conflicts:
	js/widgets/forms/select.custom.js

It is better to set the href to something valid rather than something that has escaped characters. The responsibility for correctly identifying elements based on a valid href goes to navigation/popup.
Path: Add function hashToSelector which takes a valid hash and escapes weird characters so that the resulting string may serve as a jQuery selector.
Navigation: Make use of new hashToSelector() function to correctly identify embedded dialogs that do not posess the data-url attribute. Fixes #5949 - loadPage: Selecting by ID not special-character-friendly
Popup: Make use of new hashToSelector() function to correctly identify embedded popups.