Revert "Accept [ and ] characters in urls, also if they are escaped"

This reverts commit 0eb2366a9afbef0b9554c083d6884704c226c397.
Revert "Accept [ and ] characters in urls, also if they are escaped"

This reverts commit 366fcb89980d14dce1a7c418ea300557238b6749.
Revert "Accept [ and ] characters in urls, also if they are escaped"

This reverts commit 0eb2366a9afbef0b9554c083d6884704c226c397.