Replace wstring::pop_back with a resize

string::pop_back is a C++11 feature, resize(size - 1) should be functionally identical and does not require C++11