RP: Strip unneeded bits from filenames