Fixed bug with incorrect handling files with whitespaces in its names

Some WebDAV clients, i.e. Cyberduck, just ignored files with whitespaces in its names until this fix.