Graceful degradation parsing attachment filename