replace deprecated encoding functions