1.2.1 bugfix for issue 3328

escape quotes and put quotes around instruments parameters