More memory-efficient building of the emocode regex