Fix a possible bug if the input filename doesn't contain a file extension