I see now there is some strangely encoded multiline strings (though IMO it would be better to make separate section for each multiline string): [CustomDefinesAndIncludes][ProjectPath0] Defines=\x00\x00\x00\x00 Includes=\x00\x00\x00\x04\x00\x00\x00`\x00/\x00h\x00o\x00m\x00e... Path=. How to properly decode and encode them with bash/perl script?