pamenc: switch to encode2().