Porter algorithm and stemming

I’m trying to implement the porter algorithm for French words.
It’s seem that the current implementation in the gems ruby-stemmer and
stemmer4r are flowed.
For instance, trying to stem
pétrolifère => petrolifer whereas I’m expecting petrol or pétrol

Has anyone encountered the issue and/or know a good working stemming gem
for French words?

Thanks,

Vincent