Improved unicode partition.
Completed and add unit tests.
Refactored trivial things.