properly encode sharing url