Fix typo in tools.py
Add utf-8 tests