Fix invalid byte sequence in UTF-8 for some source files

The encoding cannot be guaranteed in the file source read in from
IO.foreach.
Merge pull request #67 from ckraybill/master

Fixes some UTF-8 ArgumentErrors I was getting with the regular expression in Ruby 1.9.3