Added UTF-8 encoding to streams.