JENKINS-17009  Parameters with newlines should be stored as TextParameterValue 

Simple fix for problems with multiline parameters: if the value of the parameter contains a newline character then use a TextParameterValue, as this handles newlines better than StringParameterValue.

The result is that downstream plugins like the rebuild plugin can correctly handle these kind of parameter values then.