Fixes the test for expression escaping on IE8.

Now trailing white spaces are removed since they are not relevant for content comparison.

Those white spaces were appearing on Internet Explorer 7 & 8 after the template file associated to the test has been reformatted.

Closes #1069
fix #1071 fixing auto-escaping issue in calendar widget

This commit fixes the issue introduced by commit
6584f219fad148129fa6de28cc434e1303405f9d in the calendar
template.
Auto-escaping now takes into account the case insensitivity of modifiers.

Modifiers are all defined with a lower case name in the framework, but the invokation of one of them can be done by specifying a name with any case: this name gets converted to lower case just before retrieving the actual modifier.

This means that users can write the name of the modifiers with any case, and the automatic escaping feature didn't handle that, thinking that escaping was not controlled by the user when the modifier was used with a case different that the hard-coded one.

Closes #1072