Fix printing error message for dossiers with non-unicode chars in title.

Fixes #589.