fix to lidt and sidt (to_s vs .pack('c*'))