Port fix for Bug 37131 to 1.2.x branch - Escape newlines in the Validator variables - code copied from Velocity Tools project (see JIRA issue VELTOOLS-52), thanks to Christopher Schultz and Nathan Bubna.
Changed paths: