Hide whitespace by default
Fix issue with stylesheet
Add a try/except when opening a file in case the detectEncoding fail to find encoding (especially if it is overriden)