Bug 952161

Encode XML entities in jenkins_shell_command.rb template after processing ERB directives.

This supersedes #2092.

Here, we will assume that things the ERB directives will emit will not interfere XML processing.