Revert "Revert "Handle Harmonia task re-assignment.""

This reverts commit 9fa645e951709c382f95ee944eb995c661a3a6fd.

I've set `LANG=en_GB.UTF-8` in the environment and I want to see whether this
fixes the problem.