The methods I found break things further down the line by also affecting linebreaks.
For example...
$ message="First Line\nSecond Line";
$ echo "${message^^}"
FIRST LINE\NSECOND LINE
Is there an elegant way to convert a string to uppercase, but leaving escaped characters alone, to get the following output instead?
FIRST LINE\nSECOND LINE
I could just do something convoluted like changing "\n" to 0001 or something along those lines, apply the conversion and then return 0001 to "\n". But maybe there is a better way.