Sanitise the named root directory.

Fixes #50
Merge pull request #133 from piojo/named-sanitise

Sanitise the named root directory.