Add .html filename extension if none supplied.