File mode normalization