Well, it's obvious that '\\n' should be returned. Otherwise we can strip all '\n' from the string and then flip. And utf8ToW behavior is inconsistent: don't strip '\n' when not flipping and strip '\n' when flipping.

Didn't observe any single time when flipping was done for multiline, actually.
I suggest to use it without '\\n' stripping (as with this patch) and if (unlikely) something will be broken - fix broken things and not keep this function in broken state.