properly urlencode all caldav links

Conflicts:
	templates/settings.php