Add encoding comment for Ruby 1.9.3
Improve command line parsing