Like .Net's 'Path' class, but no retarded.