Remove auto-adding extension to file name