get encodings to work but require ruby 1.9