Fixed the unicode bugs.Modified tests.