changed charset to encoding string