encode command to ascii-8bit when on jruby