Fix test suite encoding problems

Closes #57
Deprecate Ruby 1.8 support