Fixed encoding for all platforms

By https://github.com/Dynogic