How to URL encode (percent encode) a string in Vala (GLib):
Uri.escape_string ("Hello, world!");
// Hello, World!
(Documenting it as it was not easy to find with a cursory web search.)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!