Fix #2058 Add square brackets to url characters

Add support for square brackets in urls