source encoding len + ruby literal + ruby pack + xml text + xml entity
encoding len encoding len encoding len encoding len
ruby literal ASCII-8BIT 3 ASCII-8BIT 6 ASCII-8BIT 6 boom ASCII-8BIT 6
ruby pack ASCII-8BIT 3 ASCII-8BIT 6 ASCII-8BIT 6 boom ASCII-8BIT 6
xml text UTF-8 1 boom boom UTF-8 2 UTF-8 2
xml entity ASCII-8BIT 3 ASCII-8BIT 6 ASCII-8BIT 6 UTF-8 2 ASCII-8BIT 6