Sanitize linked strings and more diagnostic output