Fixes for `cot_url_modify()`, closed #1242.