Convert the basename.