encoding debug