Moved escaping utilities into separate module.

This improves both compilation and rendering performance, and cleans up
the mess that was createUtilities().