Fix encode/decode shared links.