Encoder now checks that an iterable is not a string

An error bytestring currently passes as an iterable in Python 3. The response is a list of ascii decimals instead of a string.
Explicitly checking if the iterable is a string fixes the issue.