Fix an unicode issue while syncing document filename and title.

Fixes #584.
Merge pull request #608 from 4teamwork/deif-fix-unicode-filename

Fix an unicode issue while syncing document filename and title.