Apply a fix for bug https://bugs.ruby-lang.org/issues/8182

XMLRPC request fails with "Wrong size. Was 31564, should be 1501"