Allow specifying a file extension