The "problem", AFAIK is that D2k9 uses wide strings as the default string type:

String = type WideString;

while in previous versions

string = type AnsiString;

Thus you are sending the filename as a UTF-16 string, which SDL doesnt like to much.