Private topic links are not displayed as topic titles

The following PR ensures that links with trailing spaces will be transformed to regular Oneboxes instead of inline Oneboxes:

~~https://github.com/discourse/discourse/pull/8893~~