Make encoding correct for devotion