The upgrade procedure to go from UBB5 to UBB6 is supposed to take care of conversion. The HTML files are no longer used but the cgi thread files remain about the same. As far as I know, links within the text are not converted, but if you leave the old HTML directories in place the direct links to them should still be valid.