cbson: check return value of PyUnicode_FromString().
iter: set length in failure case of bson_iter_code().