Marting,

try the following, change from:
[code=thinbasic] function = UTF8ToAnsi$(strdata)[/code]
to
[code=thinbasic] function = acode$(UTF8ToWideChar$(strdata))[/code]
in function "download"

Mainly you need to pass from UTF8 to Unicode to Ansi.

I'm still studying how those conversions take place, to be honest I'm not an expert of this field.

Ciao
Eros