Use unicode internally everywhere for 'repr'.

Closes #2270.
Isn't this line enough for both py2 and py3 ?