How to decode Diacritics?

How to decode Diacritics?

For example, when I perform a query on a MongoDB collection, if the word has a diacritic (accent on the letter), it returns it encode like…

Niccolò Paganini

What’s the best pattern to decode these encodings?
Or insert it into the collection without encoding it.

Thanks