modyfied encoder.rb to ignore asciii encoding