fix encodings for ruby2.0