revert encoding