Managing resources with spacen in their names

Hi,

please consider adding this little PR to your repo. It implements encoding of path names containing spaces converting those to %20 (i.e. Default calendar -> Default%20calendar). Yes, I know, my code is orrible, but hey, it's well after midnight ;)

Tested on my S4 + OwnCloud 4, works like a charm.