[unicode_info] Fix unicode error introduced in 6a0d18ef

This fix only affects Python 2.7, as unicode handling is much better in 3.x
[unicode_info] Add tests