Output __str__ in the given encoding

Removes need to is PY3 checks