Unicode fixes in TextInput for py2

TextInput now tries to maintain unicode inside.
 - converts all input to unicode
 - makes sure to use unicode internally
 - returns back str

closes #1271