unicode support - add code to support unicode input - add test code for unicode input

This line won't work with Python 3.