Truncate long bundle names to fix #47

Proposed fix for #47.