On Ruby 1.9.x, the Pathname must be converted over to a string before Shellwords can escape it