Upply upstream security changes (manually)

https://github.com/omghax/jruby-sandbox/commit/1686e7bc013623c43872c554e931b06529420db4