StringUtils: fix TrimLeft and TrimRight functions with UTF-8 strings

TrimLeft and TrimRight functions failed with UTF-8 strings at least on Win32.  When dereferencing std::string::iterator through not(ptf_fun(isspace())) value converted to int as signed char (isspace declared as "int isspace(int)").