removed encoding calls