Encode the strings used for quick sharing.