Fix unserializing UnicodeError(s) by the feat json serializer.

Due to the python bug this was causing a segfault and killing the
process.