Is there anyone who knows how to do it? I really need it soon

the first point is for writing a savegame name in unicode.
The second point is to paste a value into a text of a message box.
Example:
in the textfile: You have got |#VALUE#| points left.
in the game: You have got 12 points left.
- with str_stri() thats easy to do, but with unicode something is not working...
I need to do it in this way because the game will release in different languages. And the sentence constructions will be different.