Recycling of strange sets: I. Cycle expansions