Make table name comparison dataset locale specific. Fixes #7899