Try this:

   result = ''
   "some string".each_byte { |b| result << b << '|' }
   puts result

--
Szy