Fixed issue #2391: BBCode Wizard for links does not properly convert square brackets in URLs

See original issue #2391  for description of the problem