make clear that functions expect unicode text as input.

Addresses the concerns with unicode handling in python2.