Convert embedded files to bytearray a bit smarter
The current behavior also triggers a runtime warning per byte: "Using QByteRef with an index pointing outside the valid range of a QByteArray. The corresponding behavior is deprecated, and will be changed in a future version of Qt."
This will keep an extra copy of the data around during convertion, but that's probably okay.