handle brackets in URLs