gifenc: switch to encode2().