qmlplugindump: correctly handle various versions of a meta object

Change-Id: I2775c2cf4a3a2b1295d389da665e5e8aadea21e9
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Make linguist's source viewer respect the encoding of files.

It currently loads source files as latin1, which means other encodings
are not supported.

Qt 5 change: c4f1ac0fbcd452f440aee4a3304574cb7fbca0ce

Task-number: QTBUG-27238

Change-Id: Ieb4de351d93bd5ac2939692c5c53bd681fea4386
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>