Add lzma encoding support via the 'xz' plugin

I'm having a deja vu here, didn't we merge this change some time ago?