fixes text encoding problem