Add an encoding flag to utf8 encoded strings