fix FIXME
escape '$', and check name length
move path shenanigans to mongodb/filesystem