remove some special characters from directory-names when validating, fixes #1231 and pull-request 73 partly

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>