resolves #1210 print encoding information in version output

- print encoding information in version output (Ruby >= 1.9.3)
- pull version output to method