Filename adjustment and archive creation