dup before fix_encoding