Fix the encoding function at OrionCKANSink