Long URLs are diluted with zero-width whitespaces

Zero-width spaces affect wrapping the same way as normal spaces but have no width.
Also added moved text formatting code into utils.

Closes bug 1229723

Change-Id: If6de83b6bf4125e8d48de203fe2d5cd935b20757