Fix queuing of unicode filenames.

Fixes #369, again.