At the time of parsing a URL, encode square brackets if they exist