integer_encode() should return an error value as well - for
consistency.