Fix indent.
Fix high byte become nil if newline in the middle.

TypeError: nil cannot be convert to integer, in Buffer#to_s pack('*C').