Work around for JRuby

Planning to move this into Gherin#rubify so that we don't have to deal
with it here.