[ALOY-789] Escape line terminators in generated code properly