Add conditional for handling settings on Windows
Add encoding settings