Please see the following code, which performs consecutive character/string replacements by looping through all the utf8 characters to be replaced; would you propose another,