Added test for unicode, fixed unicode bug by ensuring that the output is also utf-8.