using the -f option mqtt_pub send the file as "binary"..
As in Does mosquitto_pub convert a binary file to ASCII?
To do what you would like to do there is probably a TextEncoding problem, probably not handled in the library with a default