Strip out malformed entries.