Will this work as expected on Ruby 1.8? I recently encountered some issues with getting the last character of a string on Ruby 1.8 and had to work around it.