Fix Regexp encoding under 1.9/2.0