Ruby 1.8.7 compatibility for the dispatcher.

I know 1.8.7 is almost EOL, but until we can get all our applications running with 1.9.x, this is one change I needed to make to run the gem with 1.8.7.