Convert tests to QUnit framework
Improved utf-8 support and fix small word hyphen bug