Fixed Unicode support.
Added simple test framework.