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 ;-))

@icewind1991 FYI
@karlitschek I'd like to backport this to stable7. This can lead to some bad problems :-/