Description
When some characters are present in an YML file, the preview dose not work.
Expected behaviour
File preview and editing should be available.
What is happening instead?

Additional context
If the file is named with an other extension than yml or yaml, preview is OK.
How to reproduce?
Try to open joined file with FileBrowser with and without extension .txt
Files
test.yml.txt