Parse attachment filename