changed encoding behavior