Debug encoding