Encode link id using url_safe as "base64"