Revert encoding for b