Pour changer l'encoding d'un fichier ou d'une chaine vous pouvez utiliser iconv:

echo "éé" |iconv --to-code UTF8