Put hash before first period in filename