It should know how to replace the newlines with \ns - get around the need for backtick string literals.