Use 'times' and 'getbyte' instead of 'each_byte'