temp fix for encoding