Fix MessageFactoryTest
There's several issues here:
- we now encode to UTF-8 by default
- we have to encode to UTF-8 for all samples here anyway, as Qt 6 now uses a non-breaking space in the AM/PM time formats
- QStringDecoder is stateful and thus needs to be reset before reuse in case of encountering invalid input, which happens in the UTF-16 test here.