set default_external for ruby 1.9
Merge pull request #1819 from mreinsch/encoding

make sure to read all files in UTF-8 encoding