backport fix to make caldav usernames with an at sign work

backport of an important fix, see https://github.com/owncloud/calendar/issues/203#issuecomment-34977596

@DeepDiver1975 please review