xattr-helper: use ValueError when the input is wrong