Backported sh5util from master to 2.6 as there are some important
bugfixes and the new item extraction feature.