Add support for unicode values in attributes.

(Only really applies to Python 2 support, since Python 3, Ruby, and JS already supported them.)