UTF8 insert Byte Order Mark
UTF8 in general does not need a BOM, a Byte Order Mark but sometimes libraries that are reading and writing files need it as mandatory argument. In UTF16 and UTF32 the BOM is mandatory.
Show the differce
With the following commands you could determine the used encoding.
The script to add BOM (Byte Order Mark
apt-get install libicu-dev