Fix non-ASCII text encoding (bug#25658)