Work on 0.2.25pre.
Fix crash when encoding an undefined value.