Escape special chars in URL rules.