Modify instance of "webdavs" to "webdav"
Currently, when adding a Nextcloud account, KAccounts sets the URL for your Nextcloud to start with "webdavs://" instead of "webdav://" resulting in a connection refused error. Changing the URL to start with webdav fixes the issue.