Use unicode internally everywhere for 'repr'.

Closes #2270.
Forget about my previous comment, I was doing conversions the wrong way in the __repr__.