Fixed the encoding not being passed inside the TextSerializer and TextWriter class.