incorrectly reverted how token is encoded