Fix for CVE-2013-6415

https://groups.google.com/d/msg/ruby-security-ann/9WiRn2nhfq0/2K2KRB4LwCMJ

Signed-off-by: Alexander Paramonov <alexander.n.paramonov@gmail.com>
Apply fix for CVE-2013-6417

https://groups.google.com/d/msg/ruby-security-ann/niK4drpSHT4/g8JW8ZsayRkJ

Signed-off-by: Alexander Paramonov <alexander.n.paramonov@gmail.com>