encoding correction