Fix slug encoding