OC-10387 encoding errors in ruby2.0