fix the encoding problem when trying to send a fact with a weird character.