Accept square brackets in URLs (fixes #26)