Automatic URLs can contain unnecessary brackets

As discussed in the feature branch.