use ord to make q compatible with Ruby 1.9