There are devices available called inverters - they take a DC input and convert it to an AC output. You can get them with 12V DC inputs for automobile applications, and the output AC voltage would normally be that which applies in the country in which the device is sold - so 230V AC for the UK, or 110V AC in the USA.
Problem is that only the most expensive ones produce a pure sine wave output - the cheaper ones have a quasi-sine wave, which is actually closer to a square wave, and not all devices will function correctly with that input. You might try contacting the manufacturer and ask them which type would be compatible with the charger. It's an expensive solution, and an inefficient one, because you're taking a low voltage DC input, converting it to a high voltage AC output, and then the charger will of course convert it back down to low voltage DC again to charge the batteries.
I did a quick search and the question has come up here on the forums several times before, so if you search the forum for inverter, you'll find other discussions on the subject.
It might be easier and cheaper though just to source a different charger which is specifically designed for a 12V DC input.