Escape accented characters properly