Remove some testing codes
Suppress a warning
Ignore ']' in url parsing

']' is a legal url char actually, but it is seldom used. For most of
time, it is something like [http://someurl] so we just ignore the ']'