[Truffle] Raise the correct exception type if type cannot be coerced into String.