Split string explicitly because mode[0] returns character code instead of character itself with Ruby 1.8