Windows-specific encoding fixes
Fixes for windows packaging and running from frozen state