Ruby 1.9 compatibility fix

It caused a serious issue in Ruby 1.9 because it overwrites original bytesize method of Strings.