Check for blacklisted characters

Fixes https://github.com/owncloud/core/issues/11264

(This should in future get moved to the mountpoint class - but that is something for @icewind1991 ;-))
Merge pull request #11265 from owncloud/fix-11264

Check for blacklisted characters