Update bindtype.rb

Suppress error while running enconding