http_dav: replace '@' with '%40' in URLs

Ugly, ugly, ugly - but what can you do?  The helper function is bogus.
if you're going to COPY the NULL, you need to make space for the NULL