only use gui and encoding when we are in windows (its not working on linux or osx without that)