Use same logic of "SysUtils.ExcludeTrailingPathDelimiter" in "BrookUtils.BrookExcludeTrailingUrlDelimiter".