explicit UTF-8 encoding for old Rubies

This does no harm, and was sufficient to make the following
command pass on my development machine:
    ruby1.9 /usr/bin/rake test
Merge pull request #2626 from rolandwalker/explicit_utf8_encoding

explicit UTF-8 encoding for old Rubies