Decode and encode letters with accents in LaTeX