40.91 is the correct conversion in imperial gallons, 34.1 is the correct in US gallons. Wolfram Alpha seems to be selecting gallon type based on locale. Given imperial gallons are hardly in use any more, as all countries that used it have metricized, it seems an odd choice - I'm Australian, a former imperial gallon country, and I get 40.91 too. But if I'm ever converting gallons to liters, its because I'm converting from a measurement used in a US context, as they are the only people to use gallons.
this issue may persist across all ambiguous imperial units, which would make all conversions suspect.