Fixed bug where iterators returning unicode silently fail

Exception is now reported.

Fixes issue #694.