Add encode transform.