clean up tail.py echo() and accept unicode strings only