use String#unpack instead of String#ord for ruby 1.8.