explicit UTF-8 encoding for old Rubies

This does no harm, and was sufficient to make the following
command pass on my development machine:
```bash
ruby1.9 /usr/bin/rake test
```
Relevant to #2615, #2625