Higher end UPS will clean that. I use Cyber Power sinewave converter UPS systems. These disconnect the power from the input power to the server power so everything goes through the UPS first cleaned up and outputted.
Its designed to be on any form of generation. Used market for those is...