Encode multiple vars; fix