A lame port of Ruby's Shellwords.rb