Append / to the url path only if the string representation of the url doesn't end in /url path is empty.
As there is no redirection from smb:// to smb:///, no crash.
As a side effect, it also fixes the crash I got in [[ https://phabricator.kde.org/D10989 | D10989 ]]