pub fn to_safe_id(id: &str) -> String
Encodes a resource id so it is safe to embed in a URL path. Apify uses the username~resourcename form, so the first / of an id is replaced with ~.
username~resourcename
/
~