try changing it to this:
local id, name, completed = "", "", ""
id, name, completed = unpack(questEntry)
It's just a guess but it may be due the variable not being unpacked in time that you're acessing position in memory that you shouldn't. Also try to convert your file to 'ANSII' if you're...