MDL-41921 mod_url: less restrictions on URL field

Restoring functionality from 2.4 accidentally removed in MDL-34311