Fix QIODevice::getChar optimization