glibmm: rework fix for absence of WCHAR_T <=> UTF-8 conversion.

The tests are passed. Also this fix works when locale doesn't
correspond to the data we receive.