Us folks in non-polarized mains plug territory hold a potential advantage here - on the kind of supply with just one Y cap going from secondary ground to mains neutral, we can just turn the plug around. Doesn't help if it's two caps connected to both phase and neutral, of course. (This design originally stems from IEC Class I SMPS, i.e. those with a 3-prong power plug including protective earth, where mains leakage currents are promptly disposed of in PE. You use 2 caps from phase and neutral to PE because, again, non-polarized power plugs. Using the same kind of design but more or less just disconnecting PE to obtain a Class II supply is nothing short of moronic, but that's exactly what happened - there are many supplies like this out there. What should have been done is using the PE connection for the mains filter, and then running a Y cap from secondary-side ground to PE. I think Thinkpad supplies do it roughly like that, but with an R||C combo between secondary-side ground and PE. Granted, there still is the issue of countries where ungrounded outlets remain common - more than you think.)
One way to shut up these two-cap-to-secondary-ground mains filters is using "technical" AC, which doesn't have a phase (with all the voltage) and neutral (with no voltage), but rather splits mains voltage between the two conductors evenly, with zero common-mode voltage. (Some countries actually use this as their standard mains. Wasn't it Norway or something?) Ideally you want an isolation transformer with a center-tapped secondary for this, but a conventional isolation transformer with good CMRR should also go a long way (maybe with a pair of equal-value resistors of suitable power and voltage handling to PE in the box for some extra persuasion). Unfortunately isolation transformers tend to be somewhat uncommon, a bit costly and generally far bigger than required for a wall wart SMPS or two.