You can use any of the 5 following server actions:
They all take a text parameter input and return a text result in the correct encoding. They can be used as functions too.