Set and reset mb_substitute_character

To disable substituting illigal characters
with the default `'?'` character.

I think this solution is better than to set
`mb_substitute_character('none');` at the end of the file.

I also think this solution makes the setting of
`mb_substitute_character('none');` in `bootstrap.php` redundant.