Ruby 2.0 fixes for the test suite

Copied from https://github.com/matta/rubymail/pull/3

Unsure if it is relevant.

```
Ruby 2.0 changes for the test suite:

    Use RbConfig - Config is depracated
    Fix encoding where ASCII-8BIT is expected
```