PY2 fixes for TextInput, TextInput now maintains unicode internally and
returns string. closes #1271