Lowered sanitize version in order to be compatible with jruby