Encoding square brackets in URLs