So I haven't seen the issues you mention with single quotes -- can you give a repro command line example? Also, are you using Ruby 2.0? I have seen the #39 in that context.