glib2 test: support Ruby 2.0.0

The default encoding is changed to UTF-8 from US-ASCII since Ruby
2.0.0. This file contains binary strings. So we should specify
"binary" as the default encoding of the file.

GitHub: fix #134

Reported by mtasaka. Thanks!!!