backport of commit 2026f81d70548a01404933f2fa869676b318f757 so that enco...

...ding for ruby 2.0 is set explicit