ensure platform.rb is utf8