Special characters at the transformer part of the items

how can I put \n character inside the transformer part of the item here is an example

Switch mqtt_7led “7LED Switch” (all) {mqtt=">mysensor:/Home/topic:command:off:turnonLed\n],>[mysensor:/Home/topic:command:on:turnoffLed\n]"}

that ‘\n’ character is not recognized by other side who subscribed for this topic in mqtt. But when I entered ‘turnonLed\n’ then it kind of works, but then i have ’ character in front. anyway I found some turn around for my personal solution but I would like to see more general solution for this issue.

Thank You