Add file extension to documents