More general solution to word cloud export problems.