JFolder::makeSafe

Makes path name safe to use.