Adding encode helper to share link