Fix crash when encoding using libschroedinger.