Bugfix for ruby 1.8 & older MultiJson

Ruby 1.8's Regexp doesn't support named captures, here's a patch that works in 1.8 and 1.9
Older version of MultiJson use encode/decode instead of load/dump