Fixed encoding problem in TString