Clean up file ending.