Truncate asset.name to 32 chars in fileName

Fixes #2241