Fix names handling for TTC files. This fixes issue #1351.

Commit 3cb817b81abedf1b37b958b6a1d32f9079a7147b introduced the issue.
Merge pull request #1384 from jtanx/ttc-names

Fix names handling for TTC files. This fixes issue #1351.