I'm going to use this for now.  I tried to replace everything with Shellwords and even backported it for Ruby 1.8 support, but Shellwords doesn't work on Windows.  I'm still evaluating options there, but in the meanwhile I'll fix the quote escaping.