gcontenttype: Make filename valid utf-8 string before processing
This is a cherry-picked fix from !3700 (merged) as a reaction to the newly filled gvfs#720 (closed) issue.
This is a cherry-picked fix from !3700 (merged) as a reaction to the newly filled gvfs#720 (closed) issue.