Ruby deprecated URI.escape and unescape in 2.x and removed those methods in 3, because they rely on a deprecated URL parser (RFC2396). However, Puppet needs them to convert potentially unsafe characters, like file paths, into valid URLs.
Passed CI in 39a7d66339