Can you replace this by using `String#shellescape` instead please?

http://apidock.com/ruby/v1_8_7_72/Shellwords/shellescape