Remove unnecessary file extension