Any mains transformer going from 120 to 18V will have insulation adequately rated for this application, so that's not a problem.
I would put it intoenclose this buck unit in a plastic box, with the transformer mounted on a metal sub-chassis attached to the box such that no metal hardware would cut through the box, for safety. Many plastic boxes have plastic stubs that will accept sheet metal screws for mounting of internal components. Some better boxes have brass inserts and accept machine screws for chassis mounting. The chassis plate would act as an adapter between the transformer's mounting hole pattern and that of the box.
In a pinch you could probably forgo the chassis plate and use nylon screws to mount the transformer directly to the plastic box. In that case, make sure to use the largest diameter screws that still fit into the transformer's mounting flange holes.
The chassis should be earthed (connected to the PE terminal of the inlet and outlet) for safety when performing measurements/servicing.
The output voltage without load should be lower than the input voltage. If the wiring is incorrect, the output voltage will be higher than the input. If that's the case, reverse the ends of one of the transformer windings. Most mains transformers do not have polarity markings, and even if they did, you always need to verify your work. Factories make mistakes too, sometimes!
Do not worry if the unloaded output voltage is not exactly 102VAC. It'll be much closer once you load the output with say a 100W light bulb. The PC-9800 should accept line voltages at least +/-5% away from 100V, likely more than that, so this buck arrangement will be sufficient for that application.
You could of course use a 20VAC output transformer, but those are potentially harder to find.