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.

As `String#encode(:xml => :attr)` puts the result in double quotes, we strip the double quotes.