Add fix for RuntimeError: Wrong size. Was xxxx, should be xxx. Apparently an issue with Ruby 2.0+