Simplified some functions in tstring.cpp by replacing with standard functions.
Added UTF-8 check when constructing a String from a char.
Merge pull request #363 from TsudaKageyu/string-std-func

Simplified some functions in tstring.cpp by replacing with standard func...