Allow empty directories and properly format subdirectory paths.
Force utf-8 so files can be fancy.