Added UTF-8 unit test (Fixed #965)