fix for encoding funkiness