An important fix to prevent encoding errors with cuesheets.

If you use multiple file ripping + cuesheets this was not working.
The code was trying to add the cuesheet to each single file, which
is obviously not correct. It should only pack the cuefile if you
have an image rip.
Several fixes as proposed in debug mode.