"html" would be a file name. The extension logic only kicks in when there's actually a dot present (due to i=1 instead of i=0).