title: Encoding issue when setting up CRON as user?
body: <p>I've set up CRON to run a code that works fine when run directly from the terminal, but fires up errors when run via CRON.</p>
  
  <p>I've appended the cron via</p>
  
  <blockquote>
    <p>env EDITOR=nano crontab -e</p>
  </blockquote>
  
  <p>To run a Ruby code as if from the standard terminal user.
  The code requires ruby (including 'watir' and 'csv' gems) and chromedriver.</p>
  
  <pre><code>58      10      *       *       *       PATH=$PATH:/usr/local/bin; /Users/sybren/chromedriver;  Ruby 'ruby/mycode.rb'
  </code></pre>
  
  <p>The PATH is there to change (environment) settings to my local user settings.
  The '/Users/sybren/chromedriver' is there to load chromedriver as an environment variable. At the end it runs my ruby code ('Ruby 'ruby/mycode.rb'')</p>
  
  <p>It fires up the following error:</p>
  
  <pre><code>/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1987:in `=~': invalid byte sequence in US-ASCII (ArgumentError)
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1987:in `init_separators'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1509:in `initialize'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1261:in `new'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1261:in `open'
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/csv.rb:1119:in `foreach'
  </code></pre>
  
  <p>There is no '~' in my ruby code. And again, the code runs fine when run from terminal. What is going wrong here? I believe it is giving the error when opening a new csv and iterating through it. </p>