Adding a symmetric output encoding to keep files in consistent state

Changes:
 - Adding a output encoding to keep local files in consistent state
 - Fixing a double encoding issue with user comments
 - Replacing a tab charter to obtain consistent indenting