fix encoding troubles