normalise error messages for hd-pub