An uneducated fix for encoding