Add escape() function to Element.

To complement unescape().  It is not exported by default because some components need to escape values in other ways (say, DB parameter-way vs. profile way).

This is a follow-up of quattor/maven-tools#23 .