I would ground via a resistor to the mains earth, provided that you get and use a mains tester, which will show incorrect wiring and faults. As well the resistor must be a 0.5W or higher power one, as it is the only thing that is preventing flashover in case of a fault. I prefer a 1W unit, as it is physically large, generally has thicker wire leads and is easy to heatshrink into the cable. Use a heatshrink with a hot melt layer in it to provide extra protection against the wires breaking loose, and even better is to shrink it in, rotate it 180 degrees so the input and output cables run next to each other and shrink a further layer onto it, so the wires are provided strain relief, and do not act directly on the soldered joints.