Replacing \n with %n in formatted strings.