String manipulation utf8

I’m trying to upcase a string that contains utf8 chars. But I have some
weird behavior.

Here is

a = “rémi”
a = “rémi”
=> “rémi”

a.chars.upcase
a.chars.upcase
=> “Rémi”

any ideas?

Rémi