@pitr-ch Thanks!!

@daviddavis  It'll work for ruby 1.9, but not 1.8 since 1.8 doesn't have support for optional parameters using format like 'safe=false'.  I suspect it can still be done w/ 1.8, but with slightly different logic.  If possible, I'd prefer to merge in the current changes and then we can create a separate PR to optimize it.