Use null-safe string method for symbols as well as strings.

Use null-safe string method for symbols as well as strings.

Use more performant .bytesize instead of unpack('C*').size.