Need to escape newlines too
Merge pull request #909 from psav/fix_script_box_2

Need to escape newlines too