Fixing 1659 master

fixes #1659 

In cases where the data dir already contained characters like . the generated physical file names were all wrong.

The class Mapper now respects an unchanged root directory which is excluded from slugifying.

@karlitschek @icewind1991 @bartv2 @butonic THX