Set a file extension