Fix SmartState Analysis failures on non-English VMs.

@chessbyte please review.

Text retrieved from non-English Windows VMs may be encoded in
UTF-16. This text may contain byte sequences that are not valid
in UTF-8. Check the text for valid encoding, and convert to UTF-8
as needed.

https://bugzilla.redhat.com/show_bug.cgi?id=1126476
Issue: #293
Issue: #332
For consistency with other code you added, should the string be `'UTF-8'` instead of `"utf-8"`?