set encoding to UTF-8 for typetool.rb

Fixes an error I was getting on ruby version 1.9.3: `invalid multibyte char (US-ASCII) (SyntaxError)`