restore surely-incorrect encoding approach