Fix instance setting form flash messages

d6a598fd64232fe9933d1bc6d2ca068c48eb4e9a allowed flash messages to be
HTML by not escaping them.

However this broke flash messages instance settings, as they used
LazyStrings previously, which doesn't work with makos pipe filter.

Therefore we now convert the LazyString objects to unicode before
putting them in a flash message.