Removed a bug with writing strings to GWS file

- Removed bug, which writes strings in wrong encoding to GWS file