backported fix from nucleic repo

See:
https://github.com/nucleic/enaml/commit/aa12a4046d2d3de584ae4dec42afc02578e620b5
Merge pull request #280 from enthought/fix_unicode_issue

Fix unicode issue