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

Fixes #589.
Merge pull request #603 from 4teamwork/deif-fix-deactivate

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