changed the way it encodes utf8