io.each_byte do |c|
end

じゃね?