Fix accidental use of the exotic "std::string::back()" method. Turns out it's
new in C++11.