removed codec; always convert from and to utf8
inlined toArray() method
use a mutable QByteArray