Encode the detail field of an alias entry before displaying its contents back to the user.