Change encoding behavior