This error might be raised, if unknown characters for the current encoding are found and changing the encoding might solve the issue as described here 72.
I’m not sure, if this error is raised by Keras or TensorFlow, which you are apparently using, but if so you might get a better answer on StackOverflow.