Added protection against file extension spoof attacks