Fix the way queue entries are written

Now that ts is a Time, printing it raw produces some real funky-looking
queue filenames.