correcting character-set changes