Add support for tar.xz archives to the extract function.