Also set mb_regex_encoding.

This fixes issues with corrupt bytes when you change the default
encoding and use regular expressions.

Fixes #3800