#1261: Fix case where filename had a period that wasn't an extension denotion.