If I look at the string's first character in debug, I get
pchar: 77 'M' String: 34 '\"'
About the debuggers output.
Depending on various things, the fpc compiler does not give the debugger enough info if your variable is a pchar, or a string.
However if you watch something like "MyText[1]" in a string "[1]" means the first char. A pchar however starts at index 0, sot "[1]" is the 2nd char. => the debugger shows both.
For the rest I am not sure, 77 would be M
32 would be " (not sure why it is shown with a \ before)
I don't know why they affect your file. Have you looked at it in a hex editor?
Also why do you only look at the FIRST char in the debugger? Maybe the issues is a later char?