systemd-escape

Escape strings for usage in systemd unit names. More information: https://www.freedesktop.org/software/systemd/man/systemd-escape.html.

systemd-escape text

systemd-escape --unescape text

systemd-escape --path text

systemd-escape --suffix suffix text

systemd-escape --template template text