Avoided string::pop_back()

Replaced string::pop_back() with string::resize(string::size() - 1) so Byfl can build with older versions of GCC (e.g., 4.6 instead of 4.7).