Fix some warnings

I put a dent in some of the warnings (I have mine set to level 4 in Visual Studio 2010).

Some I don't understand, what is the intention of this line:

v.append(char(0xff)); // tstring.cpp