Changed encoding to UTF-8 and modified StreamEncoding a bit.