use String#bytesize instead of String#size