Implemented remaining UTF8 unit tests and corrected bugs.