Perhaps it would be better to only change the `substitute_character` configuration during the `UTF8::clean` call?

so it would look something like

````php
$original_char_config = mb_substitute_character();
mb_substitute_character('none');

// Do UTF8::clean work

mb_substitue_character($original_char_config);
````