Add work-around for JRuby Regexp issue