fix bug #2. change @content.to_s.length to @content.to_s.bytesize