encode url for sharing