Decoding webdav URLs (or how to avoid going cross-eyed reading your error messages)