expose jsonify.encode as a stdvar

Change-Id: Ic8fd05a8cfe73330a40dc6766ee7eb3e9233f979